<?php
include_once "Zend/Loader.php";

Zend_Loader::loadClass('Zend_Controller_Front');
$frontController = Zend_Controller_Front::getInstance();

Zend_Loader::loadClass('Zend_Registry');
define('_TEST_CONTEXT', True);
Zend_Registry::set('context','test');
include_once('appBootstrap.php');
require_once(dirname(__FILE__) . '/tests/ObjectMother.php');

$mom = new Kpl_ObjectMother;
$mom->fillWithTestDataFor('Accounts')->fillWithTestDataFor('BillHdrs')
			->fillWithTestDataFor('BuildStr')->fillWithTestDataFor('Documents')
			->fillWithTestDataFor('DocumentTypes')->fillWithTestDataFor('Employees')
			->fillWithTestDataFor('Groups')->fillWithTestDataFor('Menu')
			->fillWithTestDataFor('Organiz')->fillWithTestDataFor('PersonDocs')
			->fillWithTestDataFor('Persons')->fillWithTestDataFor('Requisites')
			->fillWithTestDataFor('RequisiteTypes')->fillWithTestDataFor('ReqValues')
			->fillWithTestDataFor('Setval')->fillWithTestDataFor('Street')
			->fillWithTestDataFor('Users');



// run!
$frontController->dispatch();
